import { createApp } from 'vue'
import App from './App.vue'
import * as directives from '@/directives'
import i18n from './language'
import router from './router'
import store from './stores'
import '@/style/index.scss'
import '@/assets/iconfont/iconfont.css'
import 'virtual:svg-icons-register'
import 'element-plus/theme-chalk/dark/css-vars.css'

const app = createApp(App)

Object.entries(directives).forEach(([name, directive]) =>
  app.directive(name, directive)
)

app.use(router).use(i18n).use(store).mount('#app')
